Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / GcBitmap Constructor / GcBitmap Constructor(Stream,Int32,Nullable<Rectangle>,Boolean)
The source stream. JPEG, PNG, WEBP, GIF, BMP, TIFF, ICO, JPEG 2000 formats are supported.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
Clipping rectangle of the image to be loaded.
Indicates whether pixel data should be dynamically mapped to a temporary file rather than kept fully in memory.

In This Topic
    GcBitmap Constructor(Stream,Int32,Nullable<Rectangle>,Boolean)
    In This Topic
    Initializes a new instance of the GcBitmap class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal frameIndex As System.Integer, _
       Optional ByVal imageRect As System.Nullable(Of Rectangle), _
       Optional ByVal storeInTempFile As System.Boolean _
    )
    public GcBitmap( 
       System.IO.Stream stream,
       System.int frameIndex,
       System.Nullable<Rectangle> imageRect,
       System.bool storeInTempFile
    )

    Parameters

    stream
    The source stream. JPEG, PNG, WEBP, GIF, BMP, TIFF, ICO, JPEG 2000 formats are supported.
    frameIndex
    Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
    imageRect
    Clipping rectangle of the image to be loaded.
    storeInTempFile
    Indicates whether pixel data should be dynamically mapped to a temporary file rather than kept fully in memory.
    See Also